import { mergeOptions } from "../utils/index.js"

export function initGlobalApi(Vue){
  Vue.options = {}; // 收集所有的通过Mixin方法传入的option
  Vue.Mixin = function(mixin){
    Vue.options = mergeOptions(this.options, mixin);
  }
}